package com.example.service.impl;

import org.apache.dubbo.config.annotation.DubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.example.service.UserService;
import com.example.vo.UserVO;

//@ApiModule("用户服务")
//@DubboService(listener = {"Xxx"},version = "1.0.0",group = "user",delay=-1,accesslog="true",owner="chenst",document="http://baidu.com",validation="true")
@DubboService(listener = {"Xxx"})
public class UserServiceImpl implements UserService{
	
	final static Logger LOG =  LoggerFactory.getLogger(UserServiceImpl.class);

//	@ApiDoc("用户资料")
	@Override
//	public @ResponseProperty(value="用户对象")UserVO profile(@RequestParam(value="用户名",required=true)String userName) {
//	public UserVO profile(@NotNull String userName) {
	public UserVO profile(String userName) {
		LOG.info("provider.point: revice userName:"+userName);
		
		
		System.out.println("provider.point: revice userName:"+userName);
		
		return UserVO.builder().name(userName).email("xx").age(18).build();
	}
}